package com.example.springfeature.forest;

import com.dtflys.forest.annotation.Query;
import com.dtflys.forest.annotation.Request;
import com.example.springfeature.restful.ResultVO;

public interface MyClient {



    @Request( url = "http://192.168.30.37:5182/emqsend/sendMqtt/sendTopicMsg",
            type = "GET")
    ResultVO sendMsg(@Query("message") String message, @Query("topic") String topic);

    @Request( url = "http://api.fanyi.baidu.com/api/trans/vip/translate",
            type = "GET")
    String bdfyApi(@Query("q") String q,
                   @Query("from") String from,
                   @Query("to") String to,
                   @Query("appid") String appid,
                   @Query("salt") String salt,
                   @Query("sign") String sign);

}
